// 多短信服务商配置（支持故障自动转移）
module.exports = {
  SMS_PROVIDERS: [
    {
      name: 'aliyun',
      key: process.env.ALI_SMS_KEY,
      secret: process.env.ALI_SMS_SECRET,
      signName: '我的应用',
      templateCode: 'SMS_12345678',
      weight: 100
    },
    {
      name: 'tencent',
      key: process.env.TENCENT_SMS_KEY,
      secret: process.env.TENCENT_SMS_SECRET,
      appId: '1400009090',
      signName: '我的应用',
      templateId: '123456',
      region: 'ap-guangzhou',
      weight: 80
    },
    {
      name: 'submail',
      appId: process.env.SUBMAIL_APPID,
      key: process.env.SUBMALL_KEY,
      weight: 60
    }
  ],

  // 短信发送限制配置
  SMS_RATE_LIMIT: {
    register: { 
      limit: 5,         // 每个手机号每天最多5条
      period: 86400     // 24小时(秒)
    },
    login: {
      limit: 10,
      period: 86400
    }
  }
};